package com.cnap.multiclouldmgmt.model.prometheusModels;

import com.cnap.multiclouldmgmt.model.K8sClusterInfoModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * Prometheus获取的数据保存
 * @author dyq
 */
@ApiModel(value = "com.cnap.multiclouldmgmt.model.prometheusModels.PrometheusAlertModel",description = "prometheus告警信息")
public class PrometheusAlertModel extends K8sClusterInfoModel {

    //job名称
    @ApiModelProperty(value = "job名称")
    private String job;

    //发生者
    @ApiModelProperty(value = "发生者")
    private String instance;

    //metricMsg
    @ApiModelProperty(value = "metricMsg")
    private String metricMsg;

    //pSql
    @ApiModelProperty(value = "pSql")
    private String pSql;

    //发生时间
    @ApiModelProperty(value = "发生时间")
    private LocalDateTime createTime;

    /**
     * get
     *
     * @return Job
     */
    public String getJob() {
        return job;
    }

    /**
     * set
     *
     * @param job job
     */
    public void setJob(String job) {
        this.job = job;
    }

    /**
     * get
     *
     * @return Instance
     */
    public String getInstance() {
        return instance;
    }

    /**
     * set
     *
     * @param instance instance
     */
    public void setInstance(String instance) {
        this.instance = instance;
    }

    /**
     * get
     *
     * @return MetricMsg
     */
    public String getMetricMsg() {
        return metricMsg;
    }

    /**
     * set
     *
     * @param metricMsg metricMsg
     */
    public void setMetricMsg(String metricMsg) {
        this.metricMsg = metricMsg;
    }

    /**
     * get
     *
     * @return pSql
     */
    public String getpSql() {
        return pSql;
    }

    /**
     * set
     *
     * @param pSql pSql
     */
    public void setpSql(String pSql) {
        this.pSql = pSql;
    }

    /**
     * get
     *
     * @return CreateTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * set
     *
     * @param createTime createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
